﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shuba.Business
{
    public class FlagFreeze
    {
        private Data.FlagFreeze flagFreeze;

        public FlagFreeze()
        {
            flagFreeze = new Data.FlagFreeze();
        }

        public List<Shuba.Model.FlagFreezeInfo> GetList(string fieldName)
        {
            return flagFreeze.GetList(fieldName);
        }

        public Shuba.Model.FlagFreezeInfo Get(Int16 flag, string field)
        {
            return flagFreeze.Get(flag, field);
        }

        public int Save(Shuba.Model.FlagFreezeInfo bi)
        {
            return flagFreeze.Save(bi);
        }

        public List<Shuba.Model.FlagFreezeInfo> GetListApproval(string UpdateBy)
        {
            return flagFreeze.GetListApproval(UpdateBy);
        }

        public Shuba.Model.FlagFreezeInfo GetApprovalByID(Int16 flag, string field)
        {
            return flagFreeze.GetApprovalByID(flag, field);
        }

        public int Approve(string ActType, Int16 flag, string field)
        {
            return flagFreeze.Approve(ActType, flag, field);
        }

        public void Reject(Int16 flag, string field)
        {
            flagFreeze.Reject(flag, field);
        }
    }
}